import unicodedata

unicode_dict = {}

for code_point in range(0x4E00,0x9FA6):  
    hex_code = f'0x{code_point:04X}'  
    prefix = hex_code[:6]
    char = chr(code_point)
    if prefix not in unicode_dict:
        unicode_dict[prefix] = ([],[])
        unicode_dict[prefix][0].append(hex_code)
        unicode_dict[prefix][1].append(char)

for prefix, (hex_codes, chars) in unicode_dict.items():
    print(' '.join(hex_codes))
    print(' '.join(chars))